
# -*- encoding: utf-8 -*-
$:.push('lib')
require "semillagen/version"

Gem::Specification.new do |s|
  s.name     = "semillagen"
  s.version  = SemillaGen::VERSION.dup
  s.date     = "2012-03-22"
  s.summary  = "Simple ActionScript project generation."
  s.email    = "support@semilla.com"
  s.homepage = "http://github.com/vicro/SemillaGen/"
  s.authors  = ['Victor G. Rosales']
  
  s.description = <<-EOF
SemillaGen let's you create (Actionscript3.0 based) projects and classes with ease.
SemillaGen generated projects or classes are customizable via templates.

The default templates setup the project for Continuous Integration using FlexUnit.
the default class template creates a class and a test case automatically.

usage:

To create a new project run:
  $ semillagen project MyAwesomeProject  
  $ ls
  MyAwesomeProject
  
To create a new class with test case:
  $ cd MyAwesomeProject
  $ semillagen class com.semilla.MillionDollarClass
  
You will see that semillagen created the following files:
src/com/semilla/MillionDollarClass.as
test-src/com/semilla/MillionDollarClassTest.as

The default template is ready for building as soon as created.
To build and test your project we use rake.

  $ rake
  
Rake will build a debug and release versions of your project. It will also create a FlexUnit test swf and run the test.
You will see the results of the tests and also you will see some xml files under the [test-report] folder. These reports
are JUnit compatible.

You can use a CI tool like Jenkins to automatically build and test your project.
    
EOF
  
  dependencies = [
    # Examples:
    # [:runtime,     "rack",  "~> 1.1"],
    # [:development, "rspec", "~> 2.1"],
    [:semilla, "semilla", "~> 0.0.7"],
    [:rake, "rake", "~> 0.9.2"]
  ]
  
  s.files         = Dir['**/*']
  s.test_files    = Dir['test/**/*'] + Dir['spec/**/*']
  s.executables   = Dir['bin/*'].map { |f| File.basename(f) }
  s.require_paths = ["lib"]
  
  
  ## Make sure you can build the gem on older versions of RubyGems too:
  s.rubygems_version = "1.8.15"
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
  s.specification_version = 3 if s.respond_to? :specification_version
  
  dependencies.each do |type, name, version|
    if s.respond_to?("add_#{type}_dependency")
      s.send("add_#{type}_dependency", name, version)
    else
      s.add_dependency(name, version)
    end
  end
end
